package edu.jd.movieplatform.info.hall.impl;

import edu.jd.movieplatform.info.hall.Hall;
import edu.jd.movieplatform.info.hall.HallDto;
import edu.jd.movieplatform.info.hall.HallService;
import edu.jd.movieplatform.info.hall.dao.HallDao;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class HallServiceImpl implements HallService {

    @Resource
    private HallDao hallDao;

    @Override
    public List<Hall> findHallList(HallDto dto) {
        return hallDao.findHallListByCondition(dto);
    }
}
